package cn.wolfcode.wolf2w.repository;


import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.TravelComment;
import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 攻略评论持久层接口
 */
@Repository
public interface TravelCommentRepository extends MongoRepository<TravelComment, String>{

    /**
     * 根据游记id查询列表
     * @param travelId
     * @return
     */
    List<TravelComment> findByTravelId(String travelId);
}
